package com.yunpeng.dishes.dao.model.entity;

import com.yunpeng.dishes.dao.model.BaseDataDO;

import java.util.Date;

/**
 * NutrientsDO 营养元素数据实体
 *
 * @author : Moore(hemw)
 * @date : 2020-03-26
 */
public class NutrientsDO extends BaseDataDO {

    /**
     * 营养元素名称
     */
    private String name;
    /**
     * 营养元素单位
     */
    private String unit;
    /**
     * 营养元素类别
     * 矿物质
     * 碳水化合物
     * 蛋白质
     * 维生素
     * 脂肪酸
     * ...
     */
    private String category;

    public NutrientsDO() {
    }

    public NutrientsDO(Long id, Short flag, Long creator, Date createTime, Long updater, Date updateTime, String code, String name, String unit, String category) {
        super(id, flag, creator, createTime, updater, updateTime, code);
        this.name = name;
        this.unit = unit;
        this.category = category;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    @Override
    public String toString() {
        return "NutrientsDO{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", unit='" + unit + '\'' +
                ", category='" + category + '\'' +
                ", code='" + code + '\'' +
                ", flag=" + flag +
                ", creator='" + creator + '\'' +
                ", createTime=" + createTime +
                ", updater='" + updater + '\'' +
                ", updateTime=" + updateTime +
                "} ";
    }
}
